package com.gelpag;

import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.support.SpringBootServletInitializer;
import org.springframework.cloud.client.discovery.EnableDiscoveryClient;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.openfeign.EnableFeignClients;

//springboot的启动类，必须要添加。以后所有的内容必须在当前包下面，要不spring无法扫描到，不会加载到容器中
@SpringBootApplication
//注册为eureka客户端
@EnableEurekaClient
//feign相关配置，先发现服务，log
@EnableDiscoveryClient
@EnableFeignClients
//设置mybitas扫描的路径
@MapperScan("com.gelpag")

public class BusinessApplication extends SpringBootServletInitializer {

    public static void main(String[] args) {
        SpringApplication.run(BusinessApplication.class, args);
    }
}
